package kburndown.client.service
{
	import kburndown.client.service.data.TaskInfo;

	public interface IService
	{
		 function moveUnit(unitId: int, posX: Number, posY: Number, callback: Function = null): void;
		 function deleteTask(taskId: int, callback: Function = null): void;
		 function finishTask(taskId: int, comment: String, callback: Function = null): void;
		 function moveTask(taskId: int, anchorTaskId: int, callback: Function = null): void;
		 function stretchTaskDuration(task: TaskInfo, newDuration: int, callback: Function = null): void
		 function editTask(taskId: int, name: String, content: String, icon: String, duration: Number, callback: Function = null): void;
		 function addTask(name: String, content: String, icon: String, ownerId: int, duration: Number, callback: Function = null): void;
		 function getInitData(callback: Function = null): void;
		 function restore(taskId: int, anchorTaskId: int, callback: Function): void;
		 function updataGraphData(date: Date, callback: Function):void;
	}
}